Support for database with multiple schemas