Only link with LibDB when needed