private JSONObject getBookInfo(String bookId)
    {
        JSONObject ourBook = new JSONObject();
        try
        {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");

            Connection con = DriverManager.getConnection("jdbc:sqlserver://localhost;user=sa;password=nopw");

            Statement st = con.createStatement();
            Statement st2 = con.createStatement();
            Statement st3 = con.createStatement();
            String query = "SELECT * "
                    + "FROM [HardCover].[dbo].[Book] "
                    + "WHERE BookUuid = '" + bookId + "' AND Active = 1;";

            String query2 = "SELECT AuthorName "
                    + "FROM [HardCover].[dbo].[Author] "
                    + "WHERE BookId = '" + bookId + "';";

            String query3 = "SELECT Genre "
                    + "FROM [HardCover].[dbo].[Genre] "
                    + "WHERE BookId = '" + bookId + "';";

            ResultSet rs = st.executeQuery(query);
            ResultSet rs2 = st2.executeQuery(query2);
            ResultSet rs3 = st3.executeQuery(query3);

            rs.next();
            String authors = "";
            while (rs2.next())
            {
                if (authors.isEmpty())
                {
                    authors = rs2.getString("AuthorName");
                } else
                {
                    authors = authors + ", " + rs2.getString("AuthorName");
                }
            }
            String genres = "";
            while (rs3.next())
            {
                if (genres.isEmpty())
                {
                    genres = rs3.getString("Genre");
                } else
                {
                    genres = genres + ", " + rs3.getString("Genre");
                }
            }
            ourBook.put("authors", authors);
            ourBook.put("genres", genres);
            ourBook.put("title", rs.getString("Title"));
            ourBook.put("description", rs.getString("BookDescription"));
            ourBook.put("cover", rs.getString("Cover"));
            ourBook.put("numCopies", rs.getString("NumCopies"));
            ourBook.put("language", rs.getString("BookLanguage"));
            ourBook.put("publisher", rs.getString("Publisher"));
        } catch (Exception e)
        {
            System.out.println(e.getMessage());
        }

        return ourBook;
    }