fixed 3rd test query, made some changes to db