key-value database wrapper for SQL database (MySQL, SQLite)