fix: return database in controllers