adds upgrade script for db queue