added config warning for the database config
internal rewrite to be more unittest/setup friendly
import fix
better dburl setup