edited some methods. db tested for book