fix some database bugs, store experiment code in database, user can start new experiments from "home" and
"previous experiments" page