modified database for postgresql