Added better sql injection protection, extracted out some methods, did some code cleanup