basic put and read from db