sql works, v0.1