LDAP and MySQL - No database selected