controller + db