Fixed all that database junk and now we can get stuff from the database