1. A method for creating a data subscription to a remote database, comprising: marking a query to be performed on a table located within the remote database as persistent within a meta-data definition of the query, indicating that results for the query are persisted to a local database; generating, in a processor, a persistent query entity based on the meta-data definition, wherein the persistent query entity is mapped to a persistent query table in the local database, each row of the persistent query table representing an invocation of the query with a particular set of parameters; uploading the persistent query table to the remote database to create a subscription for the query corresponding to the particular set of parameters; and generating query execution code to: consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database.