Delete obsolet DatabaseSetup class

Fix some issues reported by coverty scan