Improved DataBase performance using transactions