queries from db now working and displaying info