just conected the books index to the db via AJAX/PHP