Working Error Reporting

Uses sessions. Also, fixed a empty space being added infront of database
items that we're being updated.