connect server to DB