Working on SQL stuff.

Made file request more generic.