connect to local database on start