Some errors fixed, views and code editing, removed init sql script