sql tweaks, feed tweaks