Moar fixes. Now it can be used with cmangos (temporary). AuthDB needs to be executes realmd database.