add static utility class, bugfix db connection handling