Changed settings db to name. And export Db class for main class