Added credentials object, completed tests for database component.