create and connect to data base