put object into storage in database in 2 statement