controller depends on postgresql