Bunch of improvements and MySQL added for good measure (production)