Fixes grabbing users from database

Users can now be received properly from the database. Also cleans up some files.

Authors: nfbrown, Sam Carlberg