working on pulling data from database