Fix pg_kill bug
Remove TABLEPREFIX-handling code
Store settings in database too