prepare values for querys and db