Implemented MySQL communication and a rudementary error handler for the client side