insert infos into database.