Wrote queryAccountsByNick and basic nick registration