Added database client and better config tests