moved db preparation to different controller
merge