Removed getDBLink function, addded comments.