added additional try/catch
switching db
added a lot of try/catches