Fix sql statement so only one call to db
Merge pull request #19 from lfritts/larry1

Fix sql statement so only one call to db