Refactored a little bit of interface, created database mock and tests

That mock of connect method in Client class works as database mock, with it's procedures.
And some tests for Client class.