Commiting database helper