Fix deprecation warnings in db migrations [fixes #81]