Add boolean flag to set whether the data is loaded to database.