Scanner actually searches the database now

For Some reason it makes it read only..idk why