added visits table and visit_migration object, which reads from a view on the old database