load category and round correctly on resume
logging in db