[cpp] Some initial support for mysql/sqlite. Not very well tested yet.