sets up basic database functionality