refixed persistence

modified column definition to work with PSQL