Kudos to Miguel, db configurations