refactor - extract db stuff from controllers
fetch vs query
provide example that shows different way queries can be written