fix database with AUTOINCREMENT