Fix handling of db-type command line option

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>