leveling up my db query game