moved constructor around
entity no longer care about database driver