fixed make_db

fixed make_db