Fixed wrong namedquery, removed id from embeddable
refactored names because of reserved sql keywords. tried to fix auth