Update db, added categories functionality