Fix bug for specifying db_file