Added a profile view button. Added functionality pertaining to database compatibility, and profile event queries.