auto select db based on hostname