Added try-except blobk on SQL execution in deposits