like button creating db row and changing states properly