add database as datasource and autocompile site