added complete profile class creation and insertion into database