After searching seems like the only SQL database that is free and can be embedded in a C/C++ application is PostgreSQL.
There are other solutions with a permissive license ? How hard is writing this from the scratch in C/C++ so i can code my own stuff ?
I suppose the standard answer to this question is sqlite.