Fixed incorrect SQL scripts in entity classes
Edited ddl to include vlogin view