After key relationship change

this code works in adding notes and viewing notes based on each client
. adding clients, editing clients and logging in still works as well.