MySQL and SQLite adapters in Python for simplifying database queries