Full revamp of loader.py

Now will support inserting single rows so it will be easy to utilize from the web app.