Closes #111 (closed) Closes #108 (closed)
Database update for #109 (closed) and migration function added