Better config support, test db connection