Initial database support for profile view