Have db open/close every statement