Commiting database for server