The error traceback is saying the connection to the database could not be opened. The problem should be in the model file that has
db=DAL(.....), the first parameter is the connection information. If the database is on another machine and a firewall is in the way you won't have any ability to connect. If you can't work out what is wrong on that line then post the model file. --