fix to database empty autoincrement column