SAMDB functions revised on 50%