setup folder structure and ran migrations