Add database prefix when none is given.

Closes #34.