add queries in database, add to favs doesnt work, have no idea what is wrong