fixes #24, Extracted database factory, moved namespace declaration to constants file

The database factory will find databases using the java native service lookup facility.  Other jars which define databases can automatically use the same factory.

Signed-off-by: gburgett <gordon.burgett@gmail.com>