Added stat tracking, connected DB, and added Auth