added stats to footer
added mysql connection and storing values in database