add server and db logs/exception handling