Improved Database exception handling. Db exceptions will be logged now