Add the command for database updates

Fix the command.php command line tool and added the database update
command