Add scripts for db upgrade