The database and SSL implemented

First version of stable database and TCP connection changed to SSL