Added documentation
Updated database adaptor