Removing debugging code
fixing DB flask code