FINAL BUILD, SURVEY DONE DATABASE CONNECTED
fixed updating db