reindex database primary keys