completed the initialisation for the database for PREFERENCES table, stores the username and their preferences for a friend