using sqlite memory db for testing
script from new pyramid version
using sqlite db for testing
more style conformity