shouldn't this be using your framework for populating the db, rather than retail SQL?