Fix config: two <connection> blocks
Update tests, fix test DBSession initialization
Add expiry notice script, improve tests