Got some of the sql stuff working for todos