preliminary method for connecting to db