Database migration script for v2.0 (closes #23)

As discussed in #23