update builddb script to run in schema and stored procedures.

make send_message stored proc compile.