made connection database class