added tableMap to db mapper, added lock modifier to select