added config in main
update initdb to use config