Moved db to Config