updated to have a main for migrations to call to make the boilerplate easier
simple version of post