Limit number of jdbc connection