           console.log $err
         else
           @pg = $client
+          console.log "postgres connected"
+          $callback()
+
+          ###
           $client.query @_version(), ($err, $result) ->
 
             if $err

            else
              log_message 'debug', $result.rows[0].ver
            $callback()


    #  --------------------------------------------------------------------


    #
    _connect_string:  ->

      $connect_string = @dbdriver + "://#{@username}:#{@password}@#{@hostname}:#{@port}/#{@database}"
      return trim($connect_string)


