Fix bug in users page, PDO-ify cronjob