added return value
Merge branch 'master' of https://github.com/aimless/g0
fixed locked database.