there is a recordset on the page looking for the cms_home_page table in the shetek_photos database.
looks like you have powercms content on the same page as the gallery?
The connection to the powerCMS database is set in the connections/PowerCMSConnection.php file, the connection for the gallery is set in the connections/powergallery.php
make sure the recordset that is looking for the cms_home_page table is using the correct connection file.