install.sql added and some bugfixes