Update main.c

Create and define query_acct() functions