it uses singleton ,and pdo  for database manipulation