def add(self, new_server):
    if new_server:
        try:
            with self.conn:
                cur = self.conn.cursor()
                cur.execute('INSERT INTO servers(host, url) values(?, ?)', (new_server.host, new_server.url))
                return (Server(cur.lastrowid, new_server.host, new_server.url), None)
        except sqlite3.IntegrityError as er:
            return (None, ('There was a db issue: ' + str(er)))
    else:
        return (None, 'No server passed in')
def add(self, new_server):
    if new_server:
        try:
            with self.conn:
                cur = self.conn.cursor()
                cur.execute('INSERT INTO servers(host, url) values(?, ?)', (new_server.host, new_server.url))
                return (Server(cur.lastrowid, new_server.host, new_server.url), None)
        except sqlite3.IntegrityError as er:
            return (None, ('There was a db issue: ' + str(er)))
    else:
        return (None, 'No server passed in')