Database implemented and favorites can be saved