attempt 3 to get db query