Bug fixing: Update database script