added db locking of answers