Added init_app to the db module.