added database handling helper scripts