The delete guest function should not exist. It would be better for us if you did not delete a guest from the database after their stay. Rather, keep a record up to a specified time as stated by law. (ie. eight years) This function should be used for backup purposes only. For example, all the data may not be kept on one server, in the event of backing up data this function may be used to delete data which has been stored on a backup server and is now duplicate. Was this the original intent of the function?