got DB working