init database in app