Optimized db_connector