db connection stuff in tilestache