I don't know if you're joking or not, but this would just be reinventing the Postgres/SQL Server/Oracle/MySQL wheel using duct tape and wishes.
If you're doing something that multiple systems have had millions of hours of development to do, just use one of those.