moved sql calls to model methods from movies and people controllers