fix bug in calling insert_db()