before realtion count
before api
adding database