Added all the constructs for basic category persisting to database