Add pry for debugging
Support specifying database name

Default database name to application name underscored.