get data from database in controller