Migration bugfix

When creating the migrations the library assumes a "users" table. Do not assume, instead put the value that is in the configurations. Also added onUpdate() and onDelete() cascading to user FK.