implemented create and delete methods. fixed getuser() bug.