connect to DB as the right user