access the local database