Feel free to laugh while you read. If you can grasp my logic for this code, is there a much more elegant strategy to achieve the same effect?
$editDatabase =