Added Database Module

With error handling and different query functions