local database setup stuff