can fetch a record by id from db