[Theia] Update Gazetteer installation to work on postgresql 8.4