store info to db