Insert Scans into Database