simple controller and db queries