Added db upgrade/downgrade scripts