Added new tests for database commands and maintenance command.