fixed a bug in map controller
change db setting and router
change map_controller index function
fixed a syntax error in porduction mode occuur