Added some comments
Added more features to the database classes