Issue with targets, accessing wrong database settings

Possibly a duplicate of this report.

Please try the proposed fix in the thread.