created crate sql util class and re factored classes accordingly