updated db to use datetime instead of timestamp. adding in basic editing.