Fixed DB access code, implemented connector deleting.