First working integration of the data model

As a client connects to the server, its data is sfored in the database
and then used to create a Client instance to be used by the main
application. This might get refactored very soon!