A Simple Database Locking Program