Added wrapper for open-run-close of db and applied to all in execute section