added version DAOs to AbstractInternalTest to be used by tests
fixed schema SQLs