remove unused code, switch to postgres