0.10.1 - simplified sql for initial data extraction