Fixed dbSetup for 1.4 compatiblity and error handling