Added database conection in blogmodel