reads favorties for a profile and saves them to a MySQL database