initialize database on app launch