autoconfiguration for mysql and postgresql databases