beginning to write functional stuff
now connects to database from remote host
specified in the configuration file