Implemented likes saving and retrieving from database