sql added
switch get values from db