Made mysql statement preparation a lot easier and added concurrency