changed author to objectid and added mongoose