1. A method for sharing data between an occasionally connected device and a remote global database communicatively coupled to the occasionally connected device, the method comprising: receiving, by the occasionally connected device, the data from the remote global database, wherein the data is accessed by a user in an online mode; storing the data in a form of one or more screen instances in a local database of the occasionally connected device, wherein the one or more screen instances are stored as a single object in the local database, wherein the one or more screen instances capture contents of a screen accessed by the user, and wherein the one or more screen instances are last viewed instances of the screen accessed by the user in the online mode, and wherein the local database is a non-relational database; querying the local database of the occasionally connected device for the one or more screen instances; updating the one or more screen instances in an offline mode based on a user input to generate one or more updated screen instances, wherein the one or more updated screen instances are stored as a separate object broken into parameters and stored on at least one of a table and a file within the local database of the occasionally connected device, wherein the at least one table and file further comprise at least a primary key column and an object repository column, wherein a screen ID for the one or more updated screen instances is indicated in the primary key column and at least one obiect of the one or more updated screen instances corresponding to the screen ID is indicated in the obiect repository column, wherein the primary key and object repository columns are updated based on the at least one user input; and synchronizing, in the online mode, the one or more updated screen instances with the remote global database to update the data stored in the remote global database, wherein the data corresponds to the one or more screen instances.