Open notepad++ (it will be easier) and for each query make a new tab.
Read it from top to bottom and when u see a database name that is not like yours change it to yours. In most of the cases Caipi's log database has different name than other people's dbs

Fix this .. execute the queries again (when you fix them) and you are ready to go... (Easier way CTRL+H Find What: Caipi's DB name / Replace With : Your DB name - Replace in all opened text documents)
Cheers!