Initial commit of kvsql lib
modified app to use kvsql as userstore