1. A method to interface an application to a database, the method comprising: determining a query used by an application that is to communicate with a database via a database driver; testing the query on the database via the database driver, wherein testing includes storing a query template when a received result of the query matches an expected result of the query; and generating a database access framework to interface between the application and the database driver based on the stored query template.