scanning to DB