Partial implementation of subcommand "initdb".

It can reset database now and show error message if that database does
not exist while reset flag is set.