Added quotes needed in sql sentences