Removed old db code