initial functions for setting up and manipulating DB