Added hash back into DB, made editing and DB connection work