make only one connection to every database

possible fix for "too many connections" error.