problems with local database