add db maintenance to cron script
fixes #789
refactored tsquery sql to use rails escaping mechanisms
add large post fix script