migrated to postgres, added minor fixes admin to work