use gorp in main as well as test