Preparing admin tables for postgresql 8.4.