1. A method to interface an application to a database, the method comprising: accessing an application profile identifying (1) a query used by the application that is to communicate with the database via a database driver and (2) an expected result of the query; executing a plurality of test queries on the database via the database driver, the test queries based on respective ones of a plurality of query templates and the query, the test queries used to determine whether a syntax of one of the test queries matches a syntax used by the database; when a received result of the first test query does not match the expected result of the query, generating a transformed test query; when a received result of the first test query or the transformed test query matches the expected result of the query, selecting a corresponding one of the query templates that is associated with the matching one of the first test query or the transformed test query of the plurality of test queries; and generating, based on the selected query template, a database access framework to interface between the application and the database driver to respond to future queries to the database.