Database Class Working