adding Queries for getting results from database. Barely works