Fixed a screw up I made with database syntax and the AND