Added database support for profile