updated sql, version 0.8