removed db code to be replaced with external db