Fixed database table additions and added migrations.