adding db insert and update function to dbutil.