changed order of import to top of init_db