Make db self-configuring