Save visit info to database