fixed modify_id method in database.rb