Added command functionality to everything.
Switched to PDO for db in PHP.