Make the mysql database connecting with objects. 2 simple classes on server and one on shared objects.