store user and records to db