Reorganized persistence package

Created own packages for MySQL and client-server classes.
Fixed getNextID method