fix get_model bug in multiple database mode