I guess somehow you've managed to avoid the various emotive threads about this subject :-) you may use dbases, books etc, it is both legal and ethical but if you want to read some debate both informed and ignorant go to the link at the bottom..
here's the rules :
You may NOT get any help from any person or any chess engine throughout the course of a game, including tablebases. You MAY use books, magazines, or other articles. You may also use computer databases (including Chess.com's Game Explorer). EXCEPTION: If both players agree for the use of a chess engine in an UNRATED game then it can be allowed.
http://www.chess.com/forum/view/general/a-tally-of-database-users--non-users
Is it ethical to use Books and reference materials for opening preparation and ideas during a match?
The reason I ask is the game explorer area of this site is pretty extensive when it comes to master games in the database.
So since both sides have the same access to the area is it okay to use it as a resource?
If someone has a book by Kasparov on the Queens Indian (for instance) can they reference that book and the games therein when it is applicable to a Online game they are in?