Add database migration for version 2 to 3