Added updating to main db
Added default values