create local database, implement database setter