remove read function and move towards DB