DB error handling Client Side