Exceptions on connections with DB