Made the getUsers() function disconnect from the DB

getUsers() will now not leave any dangling DB connections.

Signed-off-by: Sebastian Lenartowicz <slenarto@uoguelph.ca>