Split DB setup code between library and executable
Working request specs!