add check connection to db controller