Added Database class and relevant libraries