Made syncing and retrieving records from the DB a bit more flexible. Moved getters to be instance methods.