Updated Database to handle profile object