reorder ids and don't create db