moves db access to server
move key to server