db writing working
fixed a few errors and added more feedback to ee