If you're using forms, I assume you're using .net which makes this the wrong forum.

To a programmer, a database typically isn't a text file.

If it were me, I'd load the "database" into a map,...