Fixed #6 and added db table column for profile caching