updates postgres and layout