LocalDatabase class to local database.