database connector fixed