Replaced MYSQL, added stats, added user detection