Updated database scripts with new stored procedures