made dbname an option too

Signed-off-by: Jason Kuster <unexpectedapocalypse@gmail.com>