14 - Fixed checkAvailableApartment SQL String

Also added lock to updateBookingTansaction in chatty


Reviewed by: Simon
Merge origin/master