modify put function to receive data.
modify init function to initialize db, and complete get function