SQLite support 1

semi-untested SQL support added to stockpiles