Updating sql_adapter to chunk database reads

I was running into issues with large (250mb+) WordPress databases coming back with a `Failed to allocate memory (No MemoryError)` error during the sql replacement process.  This is because the current process loads the entire database into memory then manipulates it there as well which takes a huge toll on the system.

I have retooled the process to instead read the sql file line by line, do the replacement, then write it out to a temporary file.  This solved the out of memory situation.