Make PostgreSQL and SQLite support optional