make sqlite3 and psycopg2 modules optional