new db helper script