Added lock database