adding local database