fix !restart threshold bug
add Rakefile
start migrations stuff
fixes