Source functions from old db
Remove old pyramid script