finish local database basic