feat(database): use array to record multiple values (refs #2761)
feat(migration): migrate array columns (refs #2761)
feat(database): correct system queries for pg 9.3 (refs #2761)