clean up data access

we can use the promise pattern to clean up our controller (route) code