quick fixes

sql edit and other small fixes