Add console script for lock-get-database