added fixes an tests for saving collection to webSql