begin connect to DB