Create data base halper and minor fix