Add dump for dev database and fix some minor bugs