Implement favouriting back end functionality