Command object and database command class