Made the database test code more generalized in order to allow for running tests against SQL Server.