postgres full text search, some small fixes