Get the user contact information
    :return: tuple (nickname, email, last_login), if none found return ()
    Note: for the moment, if no nickname, will return email address up to the ':'

def query_get_user_contact_info(uid):
    """
    Get the user contact information
    :return: tuple (nickname, email, last_login), if none found return ()
    Note: for the moment, if no nickname, will return email address up to the ':'
    """
    # FIXME compatibility with postgresql
    query1 = """SELECT nickname, email,
                       """ + \
        datetime_format('last_login') + \
        """
                     FROM "user" WHERE id=%s"""
    params1 = (uid,)
    res1 = run_sql(query1, params1)
    if res1:
        return res1[0]
    else:
        return ()