Added try/catch to database calls