Updated so Profile tabs now works with db.