fix db close exception
change test db to in-memory db
fix warning
angular 1.0.6
fix type edit error
db