config base database setup + docs + Factory