reorder structure in order to access config easily + sqlalchemy