safety checks on user inputted db name, and set-up some defaults